import java.util.Scanner;

public class Test {
    public static void print(int n){
        if (n < 10){
            System.out.print(n + " ");
            return;
        }
        print(n / 10);
        System.out.print(n % 10+ " ");
    }
    public static void main(String[] args) {
//     顺位打印每一个数 如1234 则打印 1 2 3 4
        System.out.println("请输入：");
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        print(n);
    }
}
